package com.cskaoyan.thread02.model.edition1;

public class Test {

    public static void main(String[] args) {

        // 蒸笼对象
        Container container = new Container();

        // 创建生产者和消费者任务
        ProducerTask producerTask = new ProducerTask(container);
        ConsumerTask consumerTask = new ConsumerTask(container);

        new Thread(producerTask, "做包子的人").start();
        new Thread(consumerTask, "吃包子的人").start();

    }
}
